<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="com.zmx.holiday.user.model.*"%>
	<%String menu="1"; %>
	<%@ include file="/head.jsp" %>
	<div id="main">
		<div id="banner">
			<div class="map">
				<img border="0" usemap="#Map" src="/images/map.png"/>
				<map name="Map" id="Map">
					<area href="/inte/roomListPro.action?province=新疆" coords="73,87,103,104" shape="rect"/>
					<area href="/inte/roomListPro.action?province=青海" coords="144,125,173,142" shape="rect"/>
					<area href="/inte/roomListPro.action?province=西藏" coords="84,158,115,175" shape="rect"/>
					<area href="/inte/roomListPro.action?province=内蒙古" coords="220,90,257,105" shape="rect"/>
					<area href="/inte/roomListPro.action?province=黑龙江" coords="348,45,389,61" shape="rect"/>
					<area href="/inte/roomListPro.action?province=吉林" coords="346,68,371,83" shape="rect"/>
					<area href="/inte/roomListPro.action?province=辽宁" coords="323,84,351,100" shape="rect"/>
					<area href="/inte/roomListPro.action?province=天津" coords="298,100,326,114" shape="rect"/>
					<area href="/inte/roomListPro.action?province=山东" coords="288,120,314,136" shape="rect"/>
					<area href="/inte/roomListPro.action?province=河北" coords="268,107,295,121" shape="rect"/>
					<area href="/inte/roomListPro.action?province=宁夏" coords="207,116,235,130" shape="rect"/>
					<area href="/inte/roomListPro.action?province=四川省" coords="186,162,214,179" shape="rect"/>
					<area href="/inte/roomListPro.action?province=河南" coords="256,142,281,157" shape="rect"/>
					<area href="/inte/roomListPro.action?province=江苏" coords="305,144,332,159" shape="rect"/>
					<area href="/inte/roomListPro.action?province=上海" coords="320,162,342,177" shape="rect"/>
					<area href="/inte/roomListPro.action?province=重庆" coords="216,168,243,185" shape="rect"/>
					<area href="/inte/roomListPro.action?province=湖北" coords="250,162,277,177" shape="rect"/>
					<area href="/inte/roomListPro.action?province=安徽" coords="283,161,308,177" shape="rect"/>
					<area href="/inte/roomListPro.action?province=贵州" coords="213,196,239,209" shape="rect"/>
					<area href="/inte/roomListPro.action?province=湖南" coords="243,183,269,198" shape="rect"/>
					<area href="/inte/roomListPro.action?province=江西" coords="273,185,299,200" shape="rect"/>
					<area href="/inte/roomListPro.action?province=浙江" coords="308,177,334,193" shape="rect"/>
					<area href="/inte/roomListPro.action?province=云南" coords="179,210,204,225" shape="rect"/>
					<area href="/inte/roomListPro.action?province=广西" coords="227,214,252,228" shape="rect"/>
					<area href="/inte/roomListPro.action?province=海南" coords="231,248,257,263" shape="rect"/>
					<area href="/inte/roomListPro.action?province=福建" coords="292,200,319,214" shape="rect"/>
					<area href="/inte/roomListPro.action?province=广东" coords="259,219,287,231" shape="rect"/>
					<area href="/inte/roomListPro.action?province=澳门" coords="244,231,270,246" shape="rect"/>
					<area href="/inte/roomListPro.action?province=香港" coords="276,232,304,248" shape="rect"/>
					<area href="/inte/roomListPro.action?province=台湾" coords="311,228,338,243" shape="rect"/>
					<area href="/inte/roomListPro.action?province=北京" coords="272,90,302,107" shape="rect"/>
					<area href="/inte/roomListPro.action?province=甘肃" coords="196,130,222,145" shape="rect"/>
					<area href="/inte/roomListPro.action?province=山西" coords="246,116,272,130" shape="rect"/>
					<area href="/inte/roomListPro.action?province=陕西" coords="224,136,252,151" shape="rect"/>
				</map>
			</div>
		</div>
		<div id="introduce">
			<div class="intro_title"></div>
			<div class="intro">
				<img  class="intro_img" src="/images/intro.jpg"/>
			</div>
			<div class="intro_info">
				<h4>欢迎来到LeSheng.com</h4>
				<p>
					了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个
				</p>
				<p>
					了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个了声望哪个
				</p>
			</div>
		</div>
		<div id="login">
			<div class="login_form">
			<%
			if(userInfo==null){
			%>
			<s:form action="userLogin" namespace="/user"  theme ="simple">
			<h4>登录乐生网</h4>
			<label>
			登录名：
			<input id="userName" type="text" name="userName" value=""/>
			</label>
			<label>
			密　码：
			<input id="userPassword" type="password" name="userPassword" value=""/>
			</label>
			<div class="button">
			<input type="image" name="submit" value="" src="/images/btn_login.gif"/>
			<a href="/user/forget_password.jsp">忘记密码？</a>
			</div>
			<p>还没有加入我们？</p>
			<input type="hidden" value="" name="userRequest"/>
			<input class="register" type="image" name="register" value="" src="/images/btn_register.gif" onclick="this.form.action='/user/registry.jsp'"/>
			</s:form>
			<%}else{ 
			%>
			<form action="/users/login.action" method="post" name="login_form" id="login_form">
			<h4>登录平台</h4>
			<p>欢迎您登录到我们的网站！<%=userName %></p>
			<label>
			<%
			if(userRight.equals("1")){
				out.println("您的权限为普通会员！");
			}else if(userRight.equals("2")){
				out.println("您的权限为注册店家！");
			}else if(userRight.equals("3")){
				out.println("您的权限为网站管理员！");
			}
			%>
			</label>
			<label><a href="/user/user_logout.jsp" class="status">[退出登录]</a><a href="/user/user_logout.jsp" class="status">[更换用户]</a></label>
			<label>
				<%
				if(userRight.equals("1")){ 
					if(userStatus.equals("1")){
				%>
				<a href="/user/apply.action?userID=<%=userID %>" class="status">[申请店家]</a>
				<%
					}else if(userStatus.equals("0")){
						out.println("<br><font color='#336699;'>您已经申请成为店家，<br>正在等待审批中...</font>");
					}else if(userStatus.equals("-1")){
						out.println("<br><font color='#336699;'>您已经申请成为店家，<br>但是没有通过审批</font>");
					}
				}else if(userRight.equals("2")){
				%>
				<a href="/inte/roomManagerList.action?userID=<%=userID %>" class="status">[客房管理]</a>
				<%	
				}else if(userRight.equals("3")){
				%>
				<a href="/admin/lock.action" class="status">[网站管理]</a>
				<%} %>
			</label>
			</form>
			<%}%>
			</div>
		</div>
		<div id="switch_list">
			<script type="text/javascript">
			<!--						
				$(document).ready(function() {
					var sorts=$('#sorts_list li');
					var contents=$('#switch_list .content');
					var imgN=$('#sorts_list li img.nor');
					var imgH=$('#sorts_list li img.hov');
					sorts.each(function(i){
						$(sorts[i]).mouseover(function(){
							imgH.hide();
							$(imgH[i]).show();
							imgN.show();
							$(imgN[i]).hide();
							$('#switch_list .content').hide();
							$(contents[i]).show();
						});
					});
					$(imgH[0]).show();
					$(imgN[0]).hide();
					$(contents[0]).show();
					Init();
				});
			//-->
			</script>
			<ul id="sorts_list">
				<li><img class="nor hide" src="/images/img_listn11.gif" alt="" /><img src="/images/img_listh11.gif" alt="" width="137" height="79" class="hov" /></li>
				<li><img class="nor" src="/images/img_listn22.gif" alt="" /><img class="hov hide" src="/images/img_listh22.gif" alt="" /></li>
				<li><img class="nor" src="/images/img_listn3.gif" alt="" /><img class="hov hide" src="/images/img_listh3.gif" alt="" /></li>
			</ul>
			<div id="switch1" class="content">
				<ul>
					<li>
						<div class="tuijian">
							<p>
								<a href="/inte/roomDetail.action?roomID=4"><b>颐园宾馆豪华标间</b></a><br />&nbsp;&nbsp;&nbsp;&nbsp;
								颐园宾馆位于乐山市中区柏杨路茶坊小区，紧邻乐山新广场，市体育中心和艺术中心。美丽的竹公溪从门前缓缓流过......
							
							<dl>
								<dt>所属省市：</dt><dd>四川省 乐山市</dd>
								<dt>所在景区：</dt><dd>乐山大佛	</dd>
								<dt>推荐指数：</dt>
									<dd>
										<img src="images/tb_14.gif" class="xingxing"/>
										<img src="images/tb_14.gif" class="xingxing"/>
										<img src="images/tb_14.gif" class="xingxing"/>
										<img src="images/tb_14.gif" class="xingxing"/>
									</dd>
								<dt>客房价格：</dt><dd><font color="red" size="+1">120/天</font></dd>
							</dl>
						</div>
						<a href="#"><img style="border:1px solid #CCCCCC;padding:4px; margin:5px 0px 0px 20px;" src="/images/room/1.jpg" alt="" width="102" height="80"/></a>
					</li>
					<li>
						<div class="tuijian">
							<p>
								<a href="/inte/roomDetail.action?roomID=8"><b>四姑娘山政府宾馆豪华套房</b></a><br />&nbsp;&nbsp;&nbsp;&nbsp;四姑娘山政府宾馆坐落于四姑娘山脚下的长坪河畔，是政府接待专用宾馆，也倍受海内外游客的欢迎......
							</p>
							<dl>
								<dt>所属省市：</dt><dd>四川省 阿坝</dd>
								<dt>所在景区：</dt><dd>四姑娘山</dd>
								<dt>推荐指数：</dt>
									<dd>
										<img src="images/tb_14.gif" class="xingxing"/>
										<img src="images/tb_14.gif" class="xingxing"/>
										<img src="images/tb_14.gif" class="xingxing"/>
										<img src="images/tb_14.gif" class="xingxing"/>
									</dd>
								<dt>客房价格：</dt>
								<dd><font color="red" size="+1">480/天</font></dd>
							</dl>
						</div>
						<a href="#"><img style="border:1px solid #CCCCCC;padding:4px; margin:5px 0px 0px 20px;" src="/images/room/2.jpg" alt="" width="102" height="80"/></a>
					</li>
				</ul>
			</div>
			<s:form action="search" namespace="/inte" validate="true" theme="simple" method="post">
			<div id="switch2" class="content">
			
					<div id="search">
						
						<div id="search_content">
							<table class="search_table" width="100%" border="0" cellspacing="0" cellpadding="0">
							  <tr>
								<th scope="row">所属省市：</th>
								<td>
									<select class="double" id="Select1" name="search.pro" runat="server" onchange="selectCity();">
										<option selected>请选择</option>
									</select>
									&nbsp;
									<select class="double" id="Select2" name="search.city" runat="server" onchange="selectCountry()">
										<option selected>请选择</option>
									</select>
								</td>
							  </tr>
							  <tr>
								<th scope="row">周边景区：</th>
								<td>
									<select id="Select3" name="search.holiday" runat="server" >
										<option selected>不限</option>
									</select>
								</td>
							  </tr>
							  <tr>
								<th scope="row">客房类型：</th>
								<td>
									<select name="search.type">
										<option>不限</option>
										<option>套房</option>
										<option>标准间</option>
										<option>豪华标间</option>
										<option>三人间</option>
										<option>其他</option>
									</select>
								</td>
							  </tr>
							  <tr>
								<th scope="row">旅游专题：</th>
								<td>
									<select name="search.holType">
										<option>不限</option>
										<option>沙滩专题</option>
										<option>草原专题</option>
										<option>滑雪专题</option>
										<option>温泉专题</option>
										<option>其他</option>
									</select>
								</td>
							  </tr>
							  <tr>
								<th scope="row">客房面积：</th>
								<td><input type="text" name="search.areaMin"/>&nbsp;--&nbsp;<input type="text" name="search.areaMax"/>&nbsp;</td>
							  </tr>
							  <tr>
								<th scope="row">客房价格：</th>
								<td><input type="text" name="search.priceMin"/>&nbsp;--&nbsp;<input type="text" name="search.priceMax"/>&nbsp;</td>
							  </tr>
							</table>
						
						</div>
						<div id="search_img">
							<a href="javascript:search.submit()"><img src="/images/search.png" /></a>
						</div>
						
					</div>
					
			</div>
			</s:form>
			<!-- 
			<div id="switch3" class="content">
				<ul>
					待定中。。。
				</ul>
			</div>
			 -->
		</div>
		<div id="news">
			<div><h3>站内新闻<span><a href=“#&quot;></a></span></h3></div>
			<div class="news-list">
				<ul>
				  <li class="nobd">
				  	<p>
				  		<b><a href="#" target="_blank" title="测试">“乐生网”投入运营</a></b><br />
				  		2009年“乐生网”正式投入运营，为广大旅游爱好者提供最快捷的住宿信息。
				  	</p>
				  	<img width=70 height=70 src="/images/img_de1.gif" alt="" />
				  </li>
				  <li><p><b><a href="#" target="_blank" title="测试">“乐生网”投入运营</a></b><br />2009年“乐生网”正式投入运营，为广大旅游爱好者提供最快捷的住宿信息。</p><img width=70 height=70 src="/images/img_de2.gif" alt="" /></li>
				  <li><p><b><a href="#" target="_blank" title="测试">“乐生网”投入运营</a></b><br />2009年“乐生网”正式投入运营，为广大旅游爱好者提供最快捷的住宿信息。</p><img width=70 height=70 src="/images/img_de3.gif" alt="" /></li>
				</ul>
				<span><a href="#"> &gt; &gt;更多</a></span>
			</div>
		</div>
		<div id="zhuanti">
			<h3>旅游专题<span><a href=“#&quot;></a></span></h3>
			<div class="ex">
				<a href="/inte/roomListHolidayType.action?holidayType=滑雪专题" target="_blank" title="滑雪专题"><img width="200" height="120" src="/images/huaxue.jpg" alt="" /></a>
			</div>
			<div class="ex">
				<a href="/inte/roomListHolidayType.action?holidayType=沙滩专题" target="_blank" title="沙滩专题"><img width="200" height="120" src="/images/zhuanti/shatan.jpg" alt="" /></a>
			</div>
			<div class="ex ">
				<a href="/inte/roomListHolidayType.action?holidayType=温泉专题" target="_blank" title="温泉专题"><img width="200" height="120" src="/images/wenquan.jpg" alt="" /></a>
			</div>
			<div class="ex bdright">
				<a href="/inte/roomListHolidayType.action?holidayType=草原专题" target="_blank" title="草原专题"><img width="200" height="120" src="/images/caoyuan.jpg" alt="" /></a>
			</div>
		</div>
		<div class="service nomg">
			<h3>寻找客房</h3>
			<div class="ser-list"><img class="de" src="/images/img_de1.gif" alt="" />
				<ul>
					<li>免费注册</li>
					<li>搜索客房</li>
					<li>地图搜房</li>
					<li>客房预定</li>
					
				</ul>
				<a href="/services/integration/index.jsp"><img src="/images/btn_detail.gif" alt="" /></a>
			</div>
		</div>
		<div class="service">
			<h3>提供客房</h3>
			<div class="ser-list"><img class="de" src="/images/img_de2.gif" alt="" />
				<ul>
					<li>店家注册与申请</li>
					<li>商务洽谈</li>
					<li>注册店铺</li>
					<li>发布客房信息</li>
				</ul>
			<a href="/services/registry/index.jsp"><img src="/images/btn_detail.gif" alt="" /></a>
			</div>
		</div>
		<div class="service">
			<h3>合作加盟</h3>
			<div class="ser-list"><img class="de" src="/images/img_de3.gif" alt="" />
				<ul>
					<li>合作推广</li>
					<li>接入咨询</li>
					<li>代理分销</li>
					<li>产业联盟</li>
				</ul>
				<a href="/union/index.jsp"><img src="/images/btn_detail.gif" alt="" /></a>
			</div>
		</div>
		<div id="scroll">
			<h3>客房展示<span><a href=“#&quot;> </a></span></h3>
			<script type="text/javascript">
			<!--
			  $(function(){
			
			  var timerID;
			  var speed = 1000; //自动滚动速度
			  var timer = 2000; //自动滚动间隔
			  var pic_w = 115; //单个宽度
			  var pic_size = 20; //总数量
			  var pic_scr = 1; //滚动数量
			  var pic_sw = pic_w*pic_size; //总宽度
			  var pic_scrw = pic_w*pic_scr; //滚动宽度
			  var _this = $('#pic_scroll ul');
			
			  pic_scroll_right = function(){
					_this.animate({
					  left:-pic_scrw*2
					},speed,function(){
					  for(i=1;i<=pic_scr;i++){
						_this.find('li:first').appendTo(_this);
					  }
					  _this.css('left',-pic_scrw);
					});
					clearTimeout(timerID);
					timerID=setTimeout("pic_scroll_right()",timer);
				  }
			
			  pic_scroll_left = function(){
					_this.animate({
					  left:0
					},speed,function(){
					  for(i=1;i<=pic_scr;i++){
						_this.find('li:last').prependTo(_this);
					  }
					  _this.css('left',-pic_scrw);
					});
					clearTimeout(timerID);
					timerID=setTimeout("pic_scroll_right()",timer);
				  }
			
				$('#pic_scroll ul').width(pic_sw);
				$('#pic_scroll ul').css('left',-pic_scrw);
				
				//鼠标事件绑定
				$('#pic_scroll').hover(function(){
				  clearTimeout(timerID);
				},function(){
				  timerID=setTimeout("pic_scroll_right()",timer);
				});
			
				//自动执行滚动函数
				timerID=setTimeout("pic_scroll_right()",timer);
			  });
			
			-->
			</script>

				<!--<a href="#" onclick="pic_scroll_left();return false;"><img src="/images/btn_left.gif"  alt="" /></a>-->
				<div id="pic_scroll">
				
					<ul>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235300836828.jpg" alt="" /></a><span style="padding-left:2px;">新都桥木雅背包客栈</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235302529250.jpg" alt="" /></a><span>乐山老干部招待所</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235302758359.jpg" alt="" /></a><span>颐园宾馆标准间</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235302804562.jpg" alt="" /></a><span>颐园宾馆豪华标间</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235303315984.jpg" alt="" /></a><span>四方客栈</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235303726390.jpg" alt="" /></a><span>蜀南竹海自由人俱乐部</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235304399281.jpg" alt="" /></a><span>四姑娘山政府宾馆豪华套房</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235300836828.jpg" alt="" /></a><span>新都桥木雅背包客栈</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235302529250.jpg" alt="" /></a><span>乐山老干部招待所</span></li>
						<li title="测试"><a href="#" target="_blank"><img title="测试" width="115" height="80" src="/picture/roomPic/1/1235302758359.jpg" alt="" /></a><span>颐园宾馆标准间</span></li>
						
					</ul>
				</div>
				<!--<a href="#" onclick="pic_scroll_right();return false;"><img src="/images/btn_right.gif"  alt="" /></a>-->
		</div>
		<div class="most nomg">
			<h3>最热门客房<span><a href="#"> &gt; 更多</a></span></h3>
			<ul>
		      <li><a href="/inte/roomDetail.action?roomID=8" class="qianlan12xx">四姑娘山政府宾馆豪华套房</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=7" class="qianlan12xx">竹海宾馆标准间</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=6" class="qianlan12xx">蜀南竹海自由人俱乐部</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=4" class="qianlan12xx">颐园宾馆豪华标间</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=3" class="qianlan12xx">颐园宾馆标准间</a></li>
			</ul>
		</div>
		<div class="most">
			<h3>最新注册客房<span><a href="#"> &gt; 更多</a></span></h3>
			<ul>
			  <li><a href="/inte/roomDetail.action?roomID=8" class="qianlan12xx">四姑娘山政府宾馆豪华套房</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=7" class="qianlan12xx">竹海宾馆标准间</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=6" class="qianlan12xx">蜀南竹海自由人俱乐部</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=5" class="qianlan12xx">四方客栈</a></li>
			  <li><a href="/inte/roomDetail.action?roomID=4" class="qianlan12xx">颐园宾馆豪华标间</a></li>
			</ul>
		</div>
		<div class="most">
			<h3>最新注册店铺<span><a href="#"> &gt; 更多</a></span></h3>
			<ul>
			  <li><a href="#" class="qianlan12xx">四姑娘山政府宾馆</a></li>
			  <li><a href="#" class="qianlan12xx">宜宾竹海宾馆</a></li>
			  <li><a href="#" class="qianlan12xx">蜀南竹海自由人俱乐部</a></li>
			  <li><a href="#" class="qianlan12xx">四方客栈</a></li>
			  <li><a href="#" class="qianlan12xx">颐园宾馆</a></li>
			</ul>
		</div>
		<div id="question">
			<h3>常见问题</h3>
			<div class="q-list">
				<ul>
					<li><a href="/doc/article11.jsp" target="_blank">乐生网是什么？</a></li>
		  			<li><a href="/doc/article12.jsp" target="_blank">如何最快的找到自己理想的客房？</a></li>
		  			<li><a href="/doc/article13.jsp" target="_blank">如何预定需要的客房？</a></li>
				</ul>
				<ul>
					<li><a href="/doc/article14.jsp" target="_blank">如何成为客房提供者？</a></li>
		  			<li><a href="/doc/article15.jsp" target="_blank">如何注册店铺于客房？</a></li>
		  			<li><a href="/doc/article16.jsp" target="_blank">如何管理自己的店铺于客房？</a></li>
				</ul>
			</div>
		</div>
		<div id="links">
			<!--<div class="logo1">
				<h3>指导单位</h3>
					<a href="http://www.mofcom.gov.cn/" target="_blank"><img src="/images/db/img_logo1.gif" alt="" /></a>
					<a href="http://www.most.gov.cn/" target="_blank"><img src="/images/db/img_logo2.gif" alt="" /></a>
			</div>-->
			<div class="logo2">
				<h3>友情链接</h3>
					<a href="http://www.estarcom.com.cn/" target="_blank"><img src="/images/db/img_logo4.gif" alt="" /></a>
					<a href="http://www.uibe.edu.cn/" target="_blank"><img src="/images/db/img_logo5.gif" alt="" /></a>
					<a href="http://www.cofortune.com.cn/" target="_blank"><img src="/images/db/img_logo6.gif" alt="" /></a>
					<a href="http://www.sinocredit.com.cn/" target="_blank"><img src="/images/db/img_logo7.gif" alt="" /></a>
					<a href="http://www.gfapki.com.cn" target="_blank"><img src="/images/db/img_logo8.gif" alt="" /></a>
					<a href="http://www.uestc.edu.cn/" target="_blank"><img src="/images/db/img_logo9.gif" alt="" /></a>
		  </div>
		</div>
	</div>
	<%@ include file="/foot.jsp" %>
